<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: PORT Peripheral driver</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__port__driver.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">PORT Peripheral driver<div class="ingroups"><a class="el" href="group__port.html">Port Control and Interrupts (PORT)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for PORT Peripheral driver:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<center><table><tr><td><div class="center"><iframe scrolling="no" frameborder="0" src="group__port__driver.svg" width="387" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structport__digital__filter__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#structport__digital__filter__config__t">port_digital_filter_config_t</a></td></tr>
<tr class="memdesc:structport__digital__filter__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">PORT digital filter feature configuration definition.  <a href="group__port__driver.html#structport__digital__filter__config__t">More...</a><br /></td></tr>
<tr class="separator:structport__digital__filter__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structport__pin__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a></td></tr>
<tr class="memdesc:structport__pin__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">PORT pin config structure.  <a href="group__port__driver.html#structport__pin__config__t">More...</a><br /></td></tr>
<tr class="separator:structport__pin__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gac523311af56d02fec0355dd272607d2d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gac523311af56d02fec0355dd272607d2d">_port_pull</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggac523311af56d02fec0355dd272607d2da39c032792b1f07f8cff02e80f99b84fb">kPORT_PullDisable</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggac523311af56d02fec0355dd272607d2dadf4c0ae7fe7e548d99889d2db7270720">kPORT_PullDown</a> = 2U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggac523311af56d02fec0355dd272607d2da14ac18cd791aece5597807fdd8e562d0">kPORT_PullUp</a> = 3U
<br />
 }<tr class="memdesc:gac523311af56d02fec0355dd272607d2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal resistor pull feature selection.  <a href="group__port__driver.html#gac523311af56d02fec0355dd272607d2d">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gac523311af56d02fec0355dd272607d2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39dfc59254a6c31e31aed71de831b6a2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga39dfc59254a6c31e31aed71de831b6a2">_port_slew_rate</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga39dfc59254a6c31e31aed71de831b6a2a6cadcb0dc5062e702f894b68177dcaff">kPORT_FastSlewRate</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga39dfc59254a6c31e31aed71de831b6a2a200f868282e26b871a2af766dbafab43">kPORT_SlowSlewRate</a> = 1U
<br />
 }<tr class="memdesc:ga39dfc59254a6c31e31aed71de831b6a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Slew rate selection.  <a href="group__port__driver.html#ga39dfc59254a6c31e31aed71de831b6a2">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga39dfc59254a6c31e31aed71de831b6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e6a9f36e6d50565c9753f6f2f444e8b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga8e6a9f36e6d50565c9753f6f2f444e8b">_port_open_drain_enable</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga8e6a9f36e6d50565c9753f6f2f444e8ba79cba81b11b8c0b79eed8daf5644c87e">kPORT_OpenDrainDisable</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga8e6a9f36e6d50565c9753f6f2f444e8ba5079205f1ed26bb6505b5e8e458a4381">kPORT_OpenDrainEnable</a> = 1U
<br />
 }<tr class="memdesc:ga8e6a9f36e6d50565c9753f6f2f444e8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal resistor pull feature enable/disable.  <a href="group__port__driver.html#ga8e6a9f36e6d50565c9753f6f2f444e8b">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga8e6a9f36e6d50565c9753f6f2f444e8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb4a2383d56ca97ec1bb58bdcd292abb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gaeb4a2383d56ca97ec1bb58bdcd292abb">_port_passive_filter_enable</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggaeb4a2383d56ca97ec1bb58bdcd292abba5b53451ea134fdae888c7079ce6ab7be">kPORT_PassiveFilterDisable</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggaeb4a2383d56ca97ec1bb58bdcd292abba09699d7db71d7535e2981122873e1c3a">kPORT_PassiveFilterEnable</a> = 1U
<br />
 }<tr class="memdesc:gaeb4a2383d56ca97ec1bb58bdcd292abb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Passive filter feature enable/disable.  <a href="group__port__driver.html#gaeb4a2383d56ca97ec1bb58bdcd292abb">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gaeb4a2383d56ca97ec1bb58bdcd292abb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17fdac515979a1b6cefc0135add46f42"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga17fdac515979a1b6cefc0135add46f42">_port_drive_strength</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga17fdac515979a1b6cefc0135add46f42a69aeab498b8774c35fd59665ac0972bc">kPORT_LowDriveStrength</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga17fdac515979a1b6cefc0135add46f42ab0b99127e9189afa7fe726069d6711f4">kPORT_HighDriveStrength</a> = 1U
<br />
 }<tr class="memdesc:ga17fdac515979a1b6cefc0135add46f42"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the drive strength.  <a href="group__port__driver.html#ga17fdac515979a1b6cefc0135add46f42">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga17fdac515979a1b6cefc0135add46f42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab1d068cb7569465483c49635e18f48e5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gab1d068cb7569465483c49635e18f48e5">_port_lock_register</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggab1d068cb7569465483c49635e18f48e5aad1df3f6b3107ca6ff4d24ea579df0cc">kPORT_UnLockRegister</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#ggab1d068cb7569465483c49635e18f48e5aab698e948993f79aa2f2670c80b42e34">kPORT_LockRegister</a> = 1U
<br />
 }<tr class="memdesc:gab1d068cb7569465483c49635e18f48e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">unlock/lock the pin control register field[15:0]  <a href="group__port__driver.html#gab1d068cb7569465483c49635e18f48e5">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:gab1d068cb7569465483c49635e18f48e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3773e52712543fad8a16c601551d2c61"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga3773e52712543fad8a16c601551d2c61">port_mux_t</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a29598afc2213cd97022d7f4d01cf80c6">kPORT_PinDisabledOrAnalog</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61abb93fffb7de40accf4a22bb24ff0b74f">kPORT_MuxAsGpio</a> = 1U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a64a3f26bc8e1eca8746659b103b3930a">kPORT_MuxAlt2</a> = 2U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a46e0855c96047b70f7a34855e2c17e24">kPORT_MuxAlt3</a> = 3U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a1b28745b0665f1d419814b6a3cc0fbfa">kPORT_MuxAlt4</a> = 4U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a970a635617c2d64aa578b76c69d55d2b">kPORT_MuxAlt5</a> = 5U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a7436308eef383a3248bca557c684d6d6">kPORT_MuxAlt6</a> = 6U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a53777f07137aade595c4ec7109af74bc">kPORT_MuxAlt7</a> = 7U
<br />
 }<tr class="memdesc:ga3773e52712543fad8a16c601551d2c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pin mux selection.  <a href="group__port__driver.html#ga3773e52712543fad8a16c601551d2c61">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga3773e52712543fad8a16c601551d2c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga18b2add7e164a5dfa5c00832f857a1f6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga18b2add7e164a5dfa5c00832f857a1f6">port_interrupt_t</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a3a632495179d065e620ada24a6521ac6">kPORT_InterruptOrDMADisabled</a> = 0x0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a7daca9006f712f428d0aa6d9c79e900a">kPORT_DmaRisingEdge</a> = 0x1U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a6629d4a1e3276af64989b46622e8b23d">kPORT_DmaFallingEdge</a> = 0x2U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6ad397675af9d777b33a7c17001d2638ee">kPORT_DmaEitherEdge</a> = 0x3U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a4001279f550382ce823ad62136970f14">kPORT_InterruptLogicZero</a> = 0x8U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a2f8db24e21fd5fabfc8dc5250fbc6471">kPORT_InterruptRisingEdge</a> = 0x9U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6afe8f52eaca9af2ce2087a2991f50c463">kPORT_InterruptFallingEdge</a> = 0xAU, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a02b1f5ef221c395aa49960c8c32943d2">kPORT_InterruptEitherEdge</a> = 0xBU, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6aa10b78a566c8439f00d14d18897f765c">kPORT_InterruptLogicOne</a> = 0xCU, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6a47452bd9fd5a7ff1dce3ccba5b38fe25">kPORT_ActiveHighTriggerOutputEnable</a> = 0xDU, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga18b2add7e164a5dfa5c00832f857a1f6af726a3a1b4f551c31fe80cac6111484a">kPORT_ActiveLowTriggerOutputEnable</a> = 0xEU
<br />
 }<tr class="memdesc:ga18b2add7e164a5dfa5c00832f857a1f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the interrupt generation condition.  <a href="group__port__driver.html#ga18b2add7e164a5dfa5c00832f857a1f6">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga18b2add7e164a5dfa5c00832f857a1f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga921bd9f201ed35fa76200312301d401e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga921bd9f201ed35fa76200312301d401e">port_digital_filter_clock_source_t</a> { <br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga921bd9f201ed35fa76200312301d401ea9f333c479b1754b56a5bb19b7251649a">kPORT_BusClock</a> = 0U, 
<br />
&#160;&#160;<a class="el" href="group__port__driver.html#gga921bd9f201ed35fa76200312301d401eacc3eb7f503adc4167d47bd7e5493513d">kPORT_LpoClock</a> = 1U
<br />
 }<tr class="memdesc:ga921bd9f201ed35fa76200312301d401e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Digital filter clock source selection.  <a href="group__port__driver.html#ga921bd9f201ed35fa76200312301d401e">More...</a><br /></td></tr>
</td></tr>
<tr class="separator:ga921bd9f201ed35fa76200312301d401e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Configuration</h2></td></tr>
<tr class="memitem:gaa699e1a4206ade9a2c465ea360fc3ebb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gaa699e1a4206ade9a2c465ea360fc3ebb">PORT_SetPinConfig</a> (PORT_Type *base, uint32_t pin, const <a class="el" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> *config)</td></tr>
<tr class="memdesc:gaa699e1a4206ade9a2c465ea360fc3ebb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the port PCR register.  <a href="#gaa699e1a4206ade9a2c465ea360fc3ebb">More...</a><br /></td></tr>
<tr class="separator:gaa699e1a4206ade9a2c465ea360fc3ebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga04890f9fdb20db0b58d8b9f0865133fa"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga04890f9fdb20db0b58d8b9f0865133fa">PORT_SetMultiplePinsConfig</a> (PORT_Type *base, uint32_t mask, const <a class="el" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> *config)</td></tr>
<tr class="memdesc:ga04890f9fdb20db0b58d8b9f0865133fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the port PCR register.  <a href="#ga04890f9fdb20db0b58d8b9f0865133fa">More...</a><br /></td></tr>
<tr class="separator:ga04890f9fdb20db0b58d8b9f0865133fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga411f929b7ce2b4a6bce083d8a5226bf4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga411f929b7ce2b4a6bce083d8a5226bf4">PORT_SetPinMux</a> (PORT_Type *base, uint32_t pin, <a class="el" href="group__port__driver.html#ga3773e52712543fad8a16c601551d2c61">port_mux_t</a> mux)</td></tr>
<tr class="memdesc:ga411f929b7ce2b4a6bce083d8a5226bf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the pin muxing.  <a href="#ga411f929b7ce2b4a6bce083d8a5226bf4">More...</a><br /></td></tr>
<tr class="separator:ga411f929b7ce2b4a6bce083d8a5226bf4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadd1cdd76ca1640c013b673f73c51e426"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gadd1cdd76ca1640c013b673f73c51e426">PORT_EnablePinsDigitalFilter</a> (PORT_Type *base, uint32_t mask, bool enable)</td></tr>
<tr class="memdesc:gadd1cdd76ca1640c013b673f73c51e426"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the digital filter in one port. Each bit of the 32-bit register represents one pin.  <a href="#gadd1cdd76ca1640c013b673f73c51e426">More...</a><br /></td></tr>
<tr class="separator:gadd1cdd76ca1640c013b673f73c51e426"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1823d0857b9a02f8ad9db601c770a785"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga1823d0857b9a02f8ad9db601c770a785">PORT_SetDigitalFilterConfig</a> (PORT_Type *base, const <a class="el" href="group__port__driver.html#structport__digital__filter__config__t">port_digital_filter_config_t</a> *config)</td></tr>
<tr class="memdesc:ga1823d0857b9a02f8ad9db601c770a785"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the digital filter in one port. Each bit of the 32-bit register represents one pin.  <a href="#ga1823d0857b9a02f8ad9db601c770a785">More...</a><br /></td></tr>
<tr class="separator:ga1823d0857b9a02f8ad9db601c770a785"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupt</h2></td></tr>
<tr class="memitem:ga13366bbc894a0d4d32af0b24df7047a5"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga13366bbc894a0d4d32af0b24df7047a5">PORT_SetPinInterruptConfig</a> (PORT_Type *base, uint32_t pin, const <a class="el" href="group__port__driver.html#ga18b2add7e164a5dfa5c00832f857a1f6">port_interrupt_t</a> config)</td></tr>
<tr class="memdesc:ga13366bbc894a0d4d32af0b24df7047a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the port pin interrupt/DMA request.  <a href="#ga13366bbc894a0d4d32af0b24df7047a5">More...</a><br /></td></tr>
<tr class="separator:ga13366bbc894a0d4d32af0b24df7047a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga50cecfe358ab8f9cad6ab881be2f8899"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#ga50cecfe358ab8f9cad6ab881be2f8899">PORT_GetPinsInterruptFlags</a> (PORT_Type *base)</td></tr>
<tr class="memdesc:ga50cecfe358ab8f9cad6ab881be2f8899"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the whole port status flag.  <a href="#ga50cecfe358ab8f9cad6ab881be2f8899">More...</a><br /></td></tr>
<tr class="separator:ga50cecfe358ab8f9cad6ab881be2f8899"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb6ede61f32b89a54049b899cd576ff7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__port__driver.html#gadb6ede61f32b89a54049b899cd576ff7">PORT_ClearPinsInterruptFlags</a> (PORT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gadb6ede61f32b89a54049b899cd576ff7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the multiple pins' interrupt status flag.  <a href="#gadb6ede61f32b89a54049b899cd576ff7">More...</a><br /></td></tr>
<tr class="separator:gadb6ede61f32b89a54049b899cd576ff7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Usage Information</h2>
<p>This section describes the programming interface of the PORT Peripheral driver. The PORT driver configures PORT module to support other IPs.</p>
<h1><a class="anchor" id="PORTFunGrps"></a>
Function groups</h1>
<h2><a class="anchor" id="PORTConfig"></a>
PORT Configuration</h2>
<p>This function group configures the PORT PCR of a pin.</p>
<h2><a class="anchor" id="PORTInterrupt"></a>
PORT Interrupt</h2>
<p>This function sets the PORT pin interrupt configuration and gets and clears the interrupt status of a PORT.</p>
<h1><a class="anchor" id="PORTpyConfig"></a>
Typical configuration case</h1>
<h2><a class="anchor" id="PORTInConfig"></a>
Input PORT Configuration</h2>
<div class="fragment"><div class="line"><span class="comment">/* Input pin PORT configuration */</span></div><div class="line"><a class="code" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> config = {</div><div class="line">    <a class="code" href="group__port__driver.html#ggac523311af56d02fec0355dd272607d2da14ac18cd791aece5597807fdd8e562d0">kPORT_PullUp</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga39dfc59254a6c31e31aed71de831b6a2a6cadcb0dc5062e702f894b68177dcaff">kPORT_FastSlewRate</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#ggaeb4a2383d56ca97ec1bb58bdcd292abba5b53451ea134fdae888c7079ce6ab7be">kPORT_PassiveFilterDisable</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga8e6a9f36e6d50565c9753f6f2f444e8ba79cba81b11b8c0b79eed8daf5644c87e">kPORT_OpenDrainDisable</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga17fdac515979a1b6cefc0135add46f42a69aeab498b8774c35fd59665ac0972bc">kPORT_LowDriveStrength</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61abb93fffb7de40accf4a22bb24ff0b74f">kPORT_MuxAsGpio</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#ggab1d068cb7569465483c49635e18f48e5aad1df3f6b3107ca6ff4d24ea579df0cc">kPORT_UnLockRegister</a>,</div><div class="line">};</div><div class="line"><span class="comment">/*  Sets the configuration */</span></div><div class="line"><a class="code" href="group__port__driver.html#gaa699e1a4206ade9a2c465ea360fc3ebb">PORT_SetPinConfig</a>(PORTA, 4, &amp;config);</div></div><!-- fragment --><h2><a class="anchor" id="I2CPORTConfig"></a>
I2C PORT Configuration</h2>
<div class="fragment"><div class="line"><span class="comment">/*  I2C pin PORTconfiguration */</span></div><div class="line"><a class="code" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> config = {</div><div class="line">    <a class="code" href="group__port__driver.html#ggac523311af56d02fec0355dd272607d2da14ac18cd791aece5597807fdd8e562d0">kPORT_PullUp</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga39dfc59254a6c31e31aed71de831b6a2a6cadcb0dc5062e702f894b68177dcaff">kPORT_FastSlewRate</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#ggaeb4a2383d56ca97ec1bb58bdcd292abba5b53451ea134fdae888c7079ce6ab7be">kPORT_PassiveFilterDisable</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga8e6a9f36e6d50565c9753f6f2f444e8ba5079205f1ed26bb6505b5e8e458a4381">kPORT_OpenDrainEnable</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga17fdac515979a1b6cefc0135add46f42a69aeab498b8774c35fd59665ac0972bc">kPORT_LowDriveStrength</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#gga3773e52712543fad8a16c601551d2c61a970a635617c2d64aa578b76c69d55d2b">kPORT_MuxAlt5</a>,</div><div class="line">    <a class="code" href="group__port__driver.html#ggab1d068cb7569465483c49635e18f48e5aad1df3f6b3107ca6ff4d24ea579df0cc">kPORT_UnLockRegister</a>,</div><div class="line">};</div><div class="line"><a class="code" href="group__port__driver.html#gaa699e1a4206ade9a2c465ea360fc3ebb">PORT_SetPinConfig</a>(PORTE,24u,&amp;config);</div><div class="line"><a class="code" href="group__port__driver.html#gaa699e1a4206ade9a2c465ea360fc3ebb">PORT_SetPinConfig</a>(PORTE,25u,&amp;config);</div></div><!-- fragment --> <hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structport__digital__filter__config__t" id="structport__digital__filter__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct port_digital_filter_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>PORT digital filter feature configuration definition. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab8d442ec494b07a2228e9f8c3184a407"></a><a class="el" href="group__port__driver.html#ga921bd9f201ed35fa76200312301d401e">port_digital_filter_clock_source_t</a></td>
<td class="fieldname">
clockSource</td>
<td class="fielddoc">
<p>Set digital filter clockSource </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab4e6e47ebf868b11fd1beb824baf56c3"></a>uint32_t</td>
<td class="fieldname">
digitalFilterWidth</td>
<td class="fielddoc">
<p>Set digital filter width </p>
</td></tr>
</table>

</div>
</div>
<a name="structport__pin__config__t" id="structport__pin__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct port_pin_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"><p>PORT pin config structure. </p>
</div><table class="fieldtable">
<tr><th colspan="3">Data Fields</th></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a77132c2c26a75f5b8751b235cda23828"></a>uint16_t</td>
<td class="fieldname">
__pad0__: 1</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ab72e3a1f2f7db8695c60c658f5a0f11a"></a>uint16_t</td>
<td class="fieldname">
__pad1__: 1</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a82701c5ec65a0fca9a84d8edc46a8192"></a>uint16_t</td>
<td class="fieldname">
__pad2__: 1</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a1b0a1a9de051f3174325808d959500f7"></a>uint16_t</td>
<td class="fieldname">
__pad3__: 4</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ac74c030589e0af8071b85ab1c0770137"></a>uint16_t</td>
<td class="fieldname">
__pad4__: 1</td>
<td class="fielddoc">
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a5b4ec81f309c010ba34294b8be3f6020"></a>uint16_t</td>
<td class="fieldname">
driveStrength: 1</td>
<td class="fielddoc">
<p>fast/slow drive strength configure </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="aabc8bdde01fea60649bcef7aa23dd7ab"></a>uint16_t</td>
<td class="fieldname">
lockRegister: 1</td>
<td class="fielddoc">
<p>lock/unlock the pcr field[15:0] </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="ad75f7d2e086c174a27111105e8431bf6"></a>uint16_t</td>
<td class="fieldname">
mux: 3</td>
<td class="fielddoc">
<p>pin mux Configure </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a00bbfb16d30a1d546e09cc66a950b668"></a>uint16_t</td>
<td class="fieldname">
openDrainEnable: 1</td>
<td class="fielddoc">
<p>open drain enable/disable </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a370e01379516339813a97d5c252f723e"></a>uint16_t</td>
<td class="fieldname">
passiveFilterEnable: 1</td>
<td class="fielddoc">
<p>passive filter enable/disable </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a4b72fdf6c5bed29d1a43815d065033aa"></a>uint16_t</td>
<td class="fieldname">
pullSelect: 2</td>
<td class="fielddoc">
<p>no-pull/pull-down/pull-up select </p>
</td></tr>
<tr><td class="fieldtype">
<a class="anchor" id="a0a6df9b54b1a3ed11c1e96b3bc0dc2d5"></a>uint16_t</td>
<td class="fieldname">
slewRate: 1</td>
<td class="fielddoc">
<p>fast/slow slew rate Configure </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="ga17fdac515979a1b6cefc0135add46f42"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga17fdac515979a1b6cefc0135add46f42">_port_drive_strength</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the drive strength. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga17fdac515979a1b6cefc0135add46f42a69aeab498b8774c35fd59665ac0972bc"></a>kPORT_LowDriveStrength&#160;</td><td class="fielddoc">
<p>low drive strength is configured. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga17fdac515979a1b6cefc0135add46f42ab0b99127e9189afa7fe726069d6711f4"></a>kPORT_HighDriveStrength&#160;</td><td class="fielddoc">
<p>high drive strength is configured. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gab1d068cb7569465483c49635e18f48e5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#gab1d068cb7569465483c49635e18f48e5">_port_lock_register</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>unlock/lock the pin control register field[15:0] </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggab1d068cb7569465483c49635e18f48e5aad1df3f6b3107ca6ff4d24ea579df0cc"></a>kPORT_UnLockRegister&#160;</td><td class="fielddoc">
<p>Pin Control Register fields [15:0] are not locked. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggab1d068cb7569465483c49635e18f48e5aab698e948993f79aa2f2670c80b42e34"></a>kPORT_LockRegister&#160;</td><td class="fielddoc">
<p>Pin Control Register fields [15:0] are locked. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga8e6a9f36e6d50565c9753f6f2f444e8b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga8e6a9f36e6d50565c9753f6f2f444e8b">_port_open_drain_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal resistor pull feature enable/disable. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga8e6a9f36e6d50565c9753f6f2f444e8ba79cba81b11b8c0b79eed8daf5644c87e"></a>kPORT_OpenDrainDisable&#160;</td><td class="fielddoc">
<p>internal pull-down resistor is disabled. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga8e6a9f36e6d50565c9753f6f2f444e8ba5079205f1ed26bb6505b5e8e458a4381"></a>kPORT_OpenDrainEnable&#160;</td><td class="fielddoc">
<p>internal pull-up resistor is enabled. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gaeb4a2383d56ca97ec1bb58bdcd292abb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#gaeb4a2383d56ca97ec1bb58bdcd292abb">_port_passive_filter_enable</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Passive filter feature enable/disable. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggaeb4a2383d56ca97ec1bb58bdcd292abba5b53451ea134fdae888c7079ce6ab7be"></a>kPORT_PassiveFilterDisable&#160;</td><td class="fielddoc">
<p>fast slew rate is configured. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggaeb4a2383d56ca97ec1bb58bdcd292abba09699d7db71d7535e2981122873e1c3a"></a>kPORT_PassiveFilterEnable&#160;</td><td class="fielddoc">
<p>slow slew rate is configured. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gac523311af56d02fec0355dd272607d2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#gac523311af56d02fec0355dd272607d2d">_port_pull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal resistor pull feature selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="ggac523311af56d02fec0355dd272607d2da39c032792b1f07f8cff02e80f99b84fb"></a>kPORT_PullDisable&#160;</td><td class="fielddoc">
<p>internal pull-up/down resistor is disabled. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac523311af56d02fec0355dd272607d2dadf4c0ae7fe7e548d99889d2db7270720"></a>kPORT_PullDown&#160;</td><td class="fielddoc">
<p>internal pull-down resistor is enabled. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="ggac523311af56d02fec0355dd272607d2da14ac18cd791aece5597807fdd8e562d0"></a>kPORT_PullUp&#160;</td><td class="fielddoc">
<p>internal pull-up resistor is enabled. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga39dfc59254a6c31e31aed71de831b6a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga39dfc59254a6c31e31aed71de831b6a2">_port_slew_rate</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Slew rate selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga39dfc59254a6c31e31aed71de831b6a2a6cadcb0dc5062e702f894b68177dcaff"></a>kPORT_FastSlewRate&#160;</td><td class="fielddoc">
<p>fast slew rate is configured. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga39dfc59254a6c31e31aed71de831b6a2a200f868282e26b871a2af766dbafab43"></a>kPORT_SlowSlewRate&#160;</td><td class="fielddoc">
<p>slow slew rate is configured. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga921bd9f201ed35fa76200312301d401e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga921bd9f201ed35fa76200312301d401e">port_digital_filter_clock_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Digital filter clock source selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga921bd9f201ed35fa76200312301d401ea9f333c479b1754b56a5bb19b7251649a"></a>kPORT_BusClock&#160;</td><td class="fielddoc">
<p>Digital filters are clocked by the bus clock. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga921bd9f201ed35fa76200312301d401eacc3eb7f503adc4167d47bd7e5493513d"></a>kPORT_LpoClock&#160;</td><td class="fielddoc">
<p>Digital filters are clocked by the 1 kHz LPO clock. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga18b2add7e164a5dfa5c00832f857a1f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga18b2add7e164a5dfa5c00832f857a1f6">port_interrupt_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the interrupt generation condition. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a3a632495179d065e620ada24a6521ac6"></a>kPORT_InterruptOrDMADisabled&#160;</td><td class="fielddoc">
<p>Interrupt/DMA request is disabled. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a7daca9006f712f428d0aa6d9c79e900a"></a>kPORT_DmaRisingEdge&#160;</td><td class="fielddoc">
<p>DMA request on rising edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a6629d4a1e3276af64989b46622e8b23d"></a>kPORT_DmaFallingEdge&#160;</td><td class="fielddoc">
<p>DMA request on falling edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6ad397675af9d777b33a7c17001d2638ee"></a>kPORT_DmaEitherEdge&#160;</td><td class="fielddoc">
<p>DMA request on either edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a4001279f550382ce823ad62136970f14"></a>kPORT_InterruptLogicZero&#160;</td><td class="fielddoc">
<p>Interrupt when logic zero. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a2f8db24e21fd5fabfc8dc5250fbc6471"></a>kPORT_InterruptRisingEdge&#160;</td><td class="fielddoc">
<p>Interrupt on rising edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6afe8f52eaca9af2ce2087a2991f50c463"></a>kPORT_InterruptFallingEdge&#160;</td><td class="fielddoc">
<p>Interrupt on falling edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a02b1f5ef221c395aa49960c8c32943d2"></a>kPORT_InterruptEitherEdge&#160;</td><td class="fielddoc">
<p>Interrupt on either edge. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6aa10b78a566c8439f00d14d18897f765c"></a>kPORT_InterruptLogicOne&#160;</td><td class="fielddoc">
<p>Interrupt when logic one. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6a47452bd9fd5a7ff1dce3ccba5b38fe25"></a>kPORT_ActiveHighTriggerOutputEnable&#160;</td><td class="fielddoc">
<p>Enable active high trigger output. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga18b2add7e164a5dfa5c00832f857a1f6af726a3a1b4f551c31fe80cac6111484a"></a>kPORT_ActiveLowTriggerOutputEnable&#160;</td><td class="fielddoc">
<p>Enable active low trigger output. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga3773e52712543fad8a16c601551d2c61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__port__driver.html#ga3773e52712543fad8a16c601551d2c61">port_mux_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pin mux selection. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a29598afc2213cd97022d7f4d01cf80c6"></a>kPORT_PinDisabledOrAnalog&#160;</td><td class="fielddoc">
<p>corresponding pin is disabled, but is used as an analog pin. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61abb93fffb7de40accf4a22bb24ff0b74f"></a>kPORT_MuxAsGpio&#160;</td><td class="fielddoc">
<p>corresponding pin is configured as GPIO. </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a64a3f26bc8e1eca8746659b103b3930a"></a>kPORT_MuxAlt2&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a46e0855c96047b70f7a34855e2c17e24"></a>kPORT_MuxAlt3&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a1b28745b0665f1d419814b6a3cc0fbfa"></a>kPORT_MuxAlt4&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a970a635617c2d64aa578b76c69d55d2b"></a>kPORT_MuxAlt5&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a7436308eef383a3248bca557c684d6d6"></a>kPORT_MuxAlt6&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="gga3773e52712543fad8a16c601551d2c61a53777f07137aade595c4ec7109af74bc"></a>kPORT_MuxAlt7&#160;</td><td class="fielddoc">
<p>chip-specific </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gadb6ede61f32b89a54049b899cd576ff7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_ClearPinsInterruptFlags </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clears the multiple pins' interrupt status flag. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">mask</td><td>PORT pins' numbers macro. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gadd1cdd76ca1640c013b673f73c51e426"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_EnablePinsDigitalFilter </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enables the digital filter in one port. Each bit of the 32-bit register represents one pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">mask</td><td>PORT pins' numbers macro. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga50cecfe358ab8f9cad6ab881be2f8899"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t PORT_GetPinsInterruptFlags </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reads the whole port status flag. </p>
<p>If a pin is configured to generate the DMA request, the corresponding flag is cleared automatically at the completion of the requested DMA transfer. Otherwise, the flag remains set until a logic one is written to that flag. If configured for a level sensitive interrupt that remains asserted, the flag is set again immediately.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">Current</td><td>port interrupt status flags, for example, 0x00010001 means the pin 0 and 17 have the interrupt. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1823d0857b9a02f8ad9db601c770a785"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_SetDigitalFilterConfig </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__port__driver.html#structport__digital__filter__config__t">port_digital_filter_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>set the digital filter in one port. Each bit of the 32-bit register represents one pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">config</td><td>PORT digital filter configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga04890f9fdb20db0b58d8b9f0865133fa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_SetMultiplePinsConfig </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the port PCR register. </p>
<p>This is an example to define an input pin or output pin PCR configuration: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;// Define a digital input pin PCR configuration</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;port_pin_config_t config = {</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;     kPORT_PullUp ,</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;     kPORT_PullEnable,</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;     kPORT_FastSlewRate,</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;     0,</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;     kPORT_PassiveFilterDisable,</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;     kPORT_OpenDrainDisable,</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;     kPORT_LowDriveStrength,</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;     0,</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;     kPORT_MuxAsGpio,</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;     0,</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;     kPORT_UnLockRegister,</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;};</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">mask</td><td>PORT pin mask. </td></tr>
    <tr><td class="paramname">config</td><td>PORT PCR register configure structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa699e1a4206ade9a2c465ea360fc3ebb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_SetPinConfig </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__port__driver.html#structport__pin__config__t">port_pin_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the port PCR register. </p>
<p>This is an example to define an input pin or output pin PCR configuration: </p><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;// Define a digital input pin PCR configuration</div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;port_pin_config_t config = {</div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;     kPORT_PullUp,</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;     kPORT_FastSlewRate,</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;     kPORT_PassiveFilterDisable,</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;     kPORT_OpenDrainDisable,</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;     kPORT_LowDriveStrength,</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;     kPORT_MuxAsGpio,</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;     kPORT_UnLockRegister,</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;};</div></div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">pin</td><td>PORT pin number. </td></tr>
    <tr><td class="paramname">config</td><td>PORT PCR register configure structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga13366bbc894a0d4d32af0b24df7047a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_SetPinInterruptConfig </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__port__driver.html#ga18b2add7e164a5dfa5c00832f857a1f6">port_interrupt_t</a>&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Configures the port pin interrupt/DMA request. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">pin</td><td>PORT pin number. </td></tr>
    <tr><td class="paramname">config</td><td>PORT pin interrupt configuration.<ul>
<li>kPORT_InterruptOrDMADisabled: Interrupt/DMA request disabled.</li>
<li>kPORT_DmaRisingEdge : DMA request on rising edge.</li>
<li>kPORT_DmaFallingEdge: DMA request on falling edge.</li>
<li>kPORT_DmaEitherEdge : DMA request on either edge.</li>
<li>kPORT_InterruptLogicZero : Interrupt when logic zero.</li>
<li>kPORT_InterruptRisingEdge : Interrupt on rising edge.</li>
<li>kPORT_InterruptFallingEdge: Interrupt on falling edge.</li>
<li>kPORT_InterruptEitherEdge : Interrupt on either edge.</li>
<li>kPORT_InterruptLogicOne : Interrupt when logic one.</li>
<li>kPORT_ActiveHighTriggerOutputEnable : Enable active high trigger output.</li>
<li>kPORT_ActiveLowTriggerOutputEnable : Enable active low trigger output. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga411f929b7ce2b4a6bce083d8a5226bf4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void PORT_SetPinMux </td>
          <td>(</td>
          <td class="paramtype">PORT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__port__driver.html#ga3773e52712543fad8a16c601551d2c61">port_mux_t</a>&#160;</td>
          <td class="paramname"><em>mux</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Configures the pin muxing. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>PORT peripheral base pointer. </td></tr>
    <tr><td class="paramname">pin</td><td>PORT pin number. </td></tr>
    <tr><td class="paramname">mux</td><td>pin muxing slot selection.<ul>
<li>kPORT_PinDisabledOrAnalog: Pin disabled or work in analog function.</li>
<li>kPORT_MuxAsGpio : Set as GPIO.</li>
<li>others : chip-specific.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<p>Note : This function is NOT recommended to use together with the PORT_SetPinsConfig, because the PORT_SetPinsConfig need to configure the pin mux anyway(Otherwise the pin mux will be reset to zero : kPORT_PinDisabledOrAnalog). This function is recommended to use in the case you just need to reset the pin mux </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
